package music;

public class MusicBoxFactory {
	public static MusicBox getInstance(String classname){
		MusicBox m=null;
		if("Piano".equals(classname)){
			m=new PianoBox();
		}
		if("Violin".equals(classname)){
			m=new ViolinBox();
		}
		return m;
	}
}
